/*
 * @Author: your name
 * @Date: 2021-09-01 14:16:15
 * @LastEditTime: 2021-09-01 14:20:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day08\7-数字平方和.js
 */

//具体函数条件
function fn(value, index, arr) {
    return value * value;
}
//定义一个数组
var arr = [1, 2, 3, 4, 5];
//调用map 及执行函数条件
var result = arr.map(fn);
//打印结果
console.log(result);